.div{:class=>"listing_container clearfix",:id=>"campaign_#{campaign.id}"}
  .listing_thumbnail{:class=>"clearfix"}
    =link_to image_tag(campaign.campaign_image.url(:medium), {:border=>0}), campaign_url(campaign)
  .listing_details
    .listing_title
      =link_to campaign.name, campaign_url(campaign)
    .listing_description
      =campaign.description
      %p
        =campaign_dates(campaign)
      %p
        =campaign_participants(campaign)
        
      -if user_participating?(campaign)
        %strong
          =t(:campaign_participating_with_points, :points=>@current_user.active_user_campaign.points)
      -elsif campaign.active?
        %p
          .action_required
            =link_to t(:campaign_join_now_short), join_page_campaign_url(campaign)
        
